﻿using UnityEngine;
using System.Collections;

public class Collectable : MonoBehaviour {

	public bool is_health = true;// 
	public Material healthmat;
	
	public bool is_pwup = false;// 
	public bool is_hpup = false;//
	public bool is_chup = false;// 
	
	
	// Use this for initialization
	void Start () {
	
		
		Vector3 offset = new Vector3(Random.Range(-100,100),Random.Range(-100,100),0);
		offset.Normalize();
		transform.position += offset;
		
		
	
		if(is_pwup == true || is_hpup == true || is_chup == true)
		{
		
		}
		else
		{
			if(Random.Range(0,100)<90)
				is_health = false;
			
			if(is_health == true)
				particleSystem.renderer.material = healthmat;
		}
	}
}
